package com.account.book.enums;


import lombok.Getter;
import lombok.RequiredArgsConstructor;

/**
 * @author liang-hw
 * @className BookAuditEnum
 * @description 成员加入账本是否需要审核枚举类
 * @date 2023/11/09 15:09:23
 */
@Getter
@RequiredArgsConstructor
public enum BookAuditEnum implements EnumTemplate {

    /**
     * 0-不需要
     */
    USER(0, "否"),

    /**
     * 1-需要管理员审核
     */
    ADMIN(1, "是");

    private final Integer value;

    private final String title;

    @Override
    public Integer getValue() {
        return this.value;
    }

    @Override
    public String getTitle() {
        return this.title;
    }
}
